package ac.github.os.internal.core.config.type

import ac.github.os.internal.core.config.DataType
import ac.github.os.internal.session.Session
import org.bukkit.potion.Potion
import taboolib.library.xseries.XPotion
import java.util.*

class DataPotion : DataType<XPotion> {
    override fun toValue(string: String, session: Session): XPotion? {
        return XPotion.matchXPotion(string.uppercase(Locale.getDefault())).get()
    }
}